package com.ruoyi.aimp.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.aimp.mapper.Aimp_WarnrecordMapper;
import com.ruoyi.aimp.domain.Aimp_Warnrecord;
import com.ruoyi.aimp.service.IAimp_WarnrecordService;

/**
 * 警告信息Service业务层处理
 * 
 * @author fengfeng
 * @date 2022-06-18
 */
@Service
public class Aimp_WarnrecordServiceImpl implements IAimp_WarnrecordService 
{
    @Autowired
    private Aimp_WarnrecordMapper aimp_WarnrecordMapper;

    /**
     * 查询警告信息
     * 
     * @param warnrecordId 警告信息主键
     * @return 警告信息
     */
    @Override
    public Aimp_Warnrecord selectAimp_WarnrecordByWarnrecordId(Long warnrecordId)
    {
        return aimp_WarnrecordMapper.selectAimp_WarnrecordByWarnrecordId(warnrecordId);
    }

    /**
     * 查询警告信息列表
     * 
     * @param aimp_Warnrecord 警告信息
     * @return 警告信息
     */
    @Override
    public List<Aimp_Warnrecord> selectAimp_WarnrecordList(Aimp_Warnrecord aimp_Warnrecord)
    {
        return aimp_WarnrecordMapper.selectAimp_WarnrecordList(aimp_Warnrecord);
    }

    /**
     * 新增警告信息
     * 
     * @param aimp_Warnrecord 警告信息
     * @return 结果
     */
    @Override
    public int insertAimp_Warnrecord(Aimp_Warnrecord aimp_Warnrecord)
    {
        return aimp_WarnrecordMapper.insertAimp_Warnrecord(aimp_Warnrecord);
    }

    /**
     * 修改警告信息
     * 
     * @param aimp_Warnrecord 警告信息
     * @return 结果
     */
    @Override
    public int updateAimp_Warnrecord(Aimp_Warnrecord aimp_Warnrecord)
    {
        return aimp_WarnrecordMapper.updateAimp_Warnrecord(aimp_Warnrecord);
    }

    /**
     * 批量删除警告信息
     * 
     * @param warnrecordIds 需要删除的警告信息主键
     * @return 结果
     */
    @Override
    public int deleteAimp_WarnrecordByWarnrecordIds(Long[] warnrecordIds)
    {
        return aimp_WarnrecordMapper.deleteAimp_WarnrecordByWarnrecordIds(warnrecordIds);
    }

    /**
     * 删除警告信息信息
     * 
     * @param warnrecordId 警告信息主键
     * @return 结果
     */
    @Override
    public int deleteAimp_WarnrecordByWarnrecordId(Long warnrecordId)
    {
        return aimp_WarnrecordMapper.deleteAimp_WarnrecordByWarnrecordId(warnrecordId);
    }
}
